<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<%
	xMode = Request("xMode")
	
	isPerm = ""
	isAdminPerm = "none"
	If Request.Cookies("S_level") = "05" then 
		isPerm = "none"
	End If
	If Request.Cookies("S_level") = "50" then 
		isAdminPerm = ""
	End If
		
%>
<!-- #include virtual=/inc/header_cross.inc.asp -->  

<BODY topmargin="0" leftmargin="0">
<!-- #include virtual=/inc/menu.inc.asp -->  

<br>
<!-- 그리드 시작 -->
<div style="text-align:left">
<table border="0" cellpadding="0" cellspacing="0" width="1235" style="margin-left:5px;text-align:left">
	<tr>
		<td width="100%" class="lTD_trbl" valign="top" style="padding: 5px 5px 5px 5px;">
			<table border="0" cellpadding="0" cellspacing="0" width="590">
				<tr height="24">
					<td style="padding: 0 0 0 0;text-align:left" width="300"><div><input type="text" class="subTitle" style="width:80px;" value="제품관리" ReadOnly>&nbsp;<a href="javascript:grid01List()">[새로고침]</a> &nbsp;</div> </td>
					<td style="padding: 0 20 0 0;" align="right" width="290"><B>Total :</B> <span id="grid01Cnt" style="font-weight:bold">0</span></td>
				</tr>
			</table>
			<table border="0" cellpadding="0" cellspacing="0" width="590"><tr><td style="background-color:#3366CC;height:2px"></td></tr></table>
			<div class="tblContainer" id="gridLayer01" style="width:590px; height:600px; overflow-y:scroll">
			<form name="frmGrid01">
			<table border="0" id="Grid01" width="573" cellpadding="0" cellspacing="0">
				<thead>
				<tr bgcolor="#EEECE7" height="25" align="center">
					<td width="40" class="lTD_0rbl gridTitle">No.</td>
					<td width="103" class="lTD_0rb0 gridTitle">발주 제품코드</td>
					<td width="160" class="lTD_0rb0 gridTitle">제품명</td>
					<td width="110" class="lTD_0rb0 gridTitle">발주처</td>
					<td width="50" class="lTD_0rb0 gridTitle">재고</td>
					<td width="80" class="lTD_0rb0 gridTitle">제품그룹</td>
					<td width="40" class="lTD_0rb0 gridTitle">생산</td>
				</tr>
				<tr id="tr01Result" bgcolor="#FFFFFF" height="25" align="center">
					<td colspan="7" style="color:#948D88; BORDER-TOP: #abccf8 0px solid;" class="lTD_0rbl"><span id="loadSpan1" style="color:#CE7302">검색된 자료가 없습니다.</span></td>
				</tr>
				</thead>
				<tbody></tbody>
			</table>
			</form>
			</div>
			<table border="0" width="590" cellpadding="0" cellspacing="0">
				<tr>
					<td align="left" colspan="6" bgcolor="FFFFFF" style="BORDER-BOTTOM: #abccf8 1px solid;BORDER-LEFT: #abccf8 1px solid;BORDER-TOP: #abccf8 1px solid;BORDER-RIGHT: #abccf8 1px solid;padding-top:0px">
						<table width="100%" border="0" cellpadding="0" cellspacing="0">
							<tr align="center" height="30">
								<td style="background-image:url(/inc/layout/panel-title-light-bg.gif)"><span id="pageDiv01"></span></td>
							</tr>									
						</table>
					</td>
				</tr>
			</table>
		</td>
		<td valign="top" style="text-align:center; padding-left:5px">					
			<table border="0" cellpadding="0" cellspacing="0" width="500">
				<tr>
				  <td width="100%" class="lTD_trbl" style="padding: 5px 5px 5px 5px; text-align:center">
					<table border="0" cellpadding="0" cellspacing="0" width="490">
						<input type="hidden" name="prdCd" id="prdCd">
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								제 &nbsp; &nbsp; &nbsp; 품 &nbsp; &nbsp; &nbsp; 명 &nbsp; : &nbsp; <input type="text" name="prdNm" id="prdNm" size="22" class="specialBox" onblur="fnFindProduct(this.value,'','showPrdNm')"> &nbsp;&nbsp; 
								<select name="showPrdNm" id="showPrdNm" style="width:150px"><option value="">--제품명--</option></select>
							</td>
						</tr>
						<tr style="display:<%=isPerm%>">
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold;">
								발 &nbsp; &nbsp; &nbsp; 주 &nbsp; &nbsp; &nbsp; 처 &nbsp; : &nbsp;<input type="text" name="compNm" id="compNm" size="22" class="inputBox" style="margin-left:4px" onblur="fnFindCompany(this.value,'','compCd')"> &nbsp;&nbsp; 
								<select name="compCd" id="compCd" style="width:150px"><option value="">--거래처--</option></select>
							</td>
						</tr>
						<tr style="display:<%=isPerm%>">
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								발주처 제품 코드 &nbsp; : &nbsp;<input type="text" name="etcPrdCd" id="etcPrdCd" size="22" class="inputBox" style="margin-left:4px"> &nbsp;&nbsp;
								<select id="prdGrp"><option value="">--제품그룹--</option><%=prdGrpSet%></select>
							</td>
						</tr>
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								원 자 재 &nbsp; &nbsp; 규 격 &nbsp; : &nbsp;<input type="text" name="sourceSize" id="sourceSize" size="50" class="inputBox" style="margin-left:4px"> &nbsp; &nbsp; &nbsp;
							</td>
						</tr>
						<tr style="display:<%=isAdminPerm%>">
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								판 매 &nbsp; &nbsp; &nbsp; &nbsp; 단 가 &nbsp; : &nbsp;<input type="text" name="unitPrice" id="unitPrice" size="10" class="inputBox" style="margin-left:4px;text-align:right"> &nbsp; &nbsp; &nbsp;
							</td>
						</tr>
						<tr>
							<td width="490" class="lTD_00b0" style="padding: 10px 0 10px 20px; text-align:left; font-weight:bold">
								<textarea name="remarks" id="remarks" class="inputBox" style="width:450px; height:80px"></textarea>

							</td>
						</tr>
						<tr style="display:<%=isPerm%>">
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								<select name="flag" id="flag">
									<option value="Y">생산중</option>
									<option value="H">생산정지</option>
									<option value="N">삭제</option>
								</select> &nbsp; &nbsp;<input type="text" id="accessInfo" style="font-weight:normal;width:120px; border:0px">
								<span>
								<input type="button" value="작업상세보기" class="inputBtn" onClick="fnOrderDetail()"> &nbsp;
								<input type="button" value="저장" class="inputBtn" onClick="fnSave()"> 
								<input type="button" value="신규" class="inputBtn" onClick="fnReset()">
								</span>
							</td>
						</tr>
					</table>
				  </td>
				</tr>
			</table>
		</td>		
		<td width="265">
			<table border="0" cellpadding="0" cellspacing="0" width="147">
				<tr>
					<td>&nbsp;</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</div>
<!-- 그리그 끝 -->

<script language="javascript">
	setMainMenu();
//	//## 테스트를 위한 기본 값세팅	
//	$("#prdNm").val("연습00");
//	$("#etcPrdCd").val("TEST01-00");
//	$("#remarks").val("연습중\r\nThis is testing....");
</script>
</BODY>
</HTML>